#ifndef CG07_TEXTURE
#define CG07_TEXTURE
//   Texture.h,   6.2.07, pm-n.

#ifndef CG07_IMAGE
class Image;
#endif

#include <GL/glut.h>
class  Texture
{

 public:

  Texture( char *rgb_bmp );

  Texture( char *rgb_bmp, char *bw_bmp );

  Texture(int h, int w, float * data);

  void  bind();

  int   getChannels();   // =3 without alpha,  =4 with alpha

  void draw();

 private:

  Image  *im;

  GLuint  texture_id;

  int    channels;   

};

#endif
